import axios from '@/utils/request';//axios可自定义名
// 用户登录api
// 使用 Record<string, unknown> 来表示 rest 是一个包含任意键值对的对象
export const signin = (username: string, password: string, rest?: Record<string, unknown>) =>
    axios.post('/auth/signin', { username, password, ...rest });
// 用户注册
export const signup = (username: string, password: string) => axios.post('/auth/signup', { username, password })